import request from '@/utils/request'

// 查询龙翔会议列表
export function listConference(query) {
  return request({
    url: '/system/conference/list',
    method: 'get',
    params: query
  })
}

// 查询龙翔会议详细
export function getConference(id) {
  return request({
    url: '/system/conference/' + id,
    method: 'get'
  })
}

// 新增龙翔会议
export function addConference(data) {
  return request({
    url: '/system/conference',
    method: 'post',
    data: data
  })
}

// 修改龙翔会议
export function updateConference(data) {
  return request({
    url: '/system/conference',
    method: 'put',
    data: data
  })
}
export function updateConference1(data) {
  return request({
    url: 'system/conference/edit',
    method: 'put',
    data: data
  })
}

// 删除龙翔会议
export function delConference(id) {
  return request({
    url: '/system/conference/' + id,
    method: 'delete'
  })
}
// id查询反馈表详情
export function getRecordId(id) {
  return request({
    url: '/system/record/' + id,
    method: 'get'
  })
}
// 查询反馈表详情
export function getRecord(id) {
  return request({
    url: '/system/record/list/?confNo=' + id,
    method: 'get'
  })
}
// 查询反馈列表
export function getRecordList(params) {
  return request({
    url: '/system/record/list/',
    method: 'get',
    params
  })
}
// 新增反馈表
export function addRecord(data) {
  return request({
    url: '/system/record/' ,
    method: 'post',
    data
  })
}
// 修改反馈表
export function updateRecord(data) {
  return request({
    url: '/system/record' ,
    method: 'put',
    data
  })
}
// 查询会议表详情(id+ccName版)
export function getRecordName(data) {
  return request({
    url: '/system/conference/listCcName',
    method: 'get',
    params:data
  })
}
// 删除反馈表
export function delRecord(id) {
  return request({
    url: '/system/record/' + id,
    method: 'delete'
  })
}